↳ Prolog
↳ PrologToPiTRSProof
perm_in([], []) → perm_out([], [])
perm_in(X, .(X0, Y)) → U3(X, X0, Y, app1_in(X1, .(X0, X2), X))
app1_in([], Y, Y) → app1_out([], Y, Y)
app1_in(.(X0, X), Y, .(X0, Z)) → U1(X0, X, Y, Z, app1_in(X, Y, Z))
U1(X0, X, Y, Z, app1_out(X, Y, Z)) → app1_out(.(X0, X), Y, .(X0, Z))
U3(X, X0, Y, app1_out(X1, .(X0, X2), X)) → U4(X, X0, Y, X1, X2, app2_in(X1, X2, Z))
app2_in([], Y, Y) → app2_out([], Y, Y)
app2_in(.(X0, X), Y, .(X0, Z)) → U2(X0, X, Y, Z, app2_in(X, Y, Z))
U2(X0, X, Y, Z, app2_out(X, Y, Z)) → app2_out(.(X0, X), Y, .(X0, Z))
U4(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → U5(X, X0, Y, perm_in(Z, Y))
U5(X, X0, Y, perm_out(Z, Y)) → perm_out(X, .(X0, Y))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
perm_in([], []) → perm_out([], [])
perm_in(X, .(X0, Y)) → U3(X, X0, Y, app1_in(X1, .(X0, X2), X))
app1_in([], Y, Y) → app1_out([], Y, Y)
app1_in(.(X0, X), Y, .(X0, Z)) → U1(X0, X, Y, Z, app1_in(X, Y, Z))
U1(X0, X, Y, Z, app1_out(X, Y, Z)) → app1_out(.(X0, X), Y, .(X0, Z))
U3(X, X0, Y, app1_out(X1, .(X0, X2), X)) → U4(X, X0, Y, X1, X2, app2_in(X1, X2, Z))
app2_in([], Y, Y) → app2_out([], Y, Y)
app2_in(.(X0, X), Y, .(X0, Z)) → U2(X0, X, Y, Z, app2_in(X, Y, Z))
U2(X0, X, Y, Z, app2_out(X, Y, Z)) → app2_out(.(X0, X), Y, .(X0, Z))
U4(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → U5(X, X0, Y, perm_in(Z, Y))
U5(X, X0, Y, perm_out(Z, Y)) → perm_out(X, .(X0, Y))
PERM_IN(X, .(X0, Y)) → U31(X, X0, Y, app1_in(X1, .(X0, X2), X))
PERM_IN(X, .(X0, Y)) → APP1_IN(X1, .(X0, X2), X)
APP1_IN(.(X0, X), Y, .(X0, Z)) → U11(X0, X, Y, Z, app1_in(X, Y, Z))
APP1_IN(.(X0, X), Y, .(X0, Z)) → APP1_IN(X, Y, Z)
U31(X, X0, Y, app1_out(X1, .(X0, X2), X)) → U41(X, X0, Y, X1, X2, app2_in(X1, X2, Z))
U31(X, X0, Y, app1_out(X1, .(X0, X2), X)) → APP2_IN(X1, X2, Z)
APP2_IN(.(X0, X), Y, .(X0, Z)) → U21(X0, X, Y, Z, app2_in(X, Y, Z))
APP2_IN(.(X0, X), Y, .(X0, Z)) → APP2_IN(X, Y, Z)
U41(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → U51(X, X0, Y, perm_in(Z, Y))
U41(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → PERM_IN(Z, Y)
perm_in([], []) → perm_out([], [])
perm_in(X, .(X0, Y)) → U3(X, X0, Y, app1_in(X1, .(X0, X2), X))
app1_in([], Y, Y) → app1_out([], Y, Y)
app1_in(.(X0, X), Y, .(X0, Z)) → U1(X0, X, Y, Z, app1_in(X, Y, Z))
U1(X0, X, Y, Z, app1_out(X, Y, Z)) → app1_out(.(X0, X), Y, .(X0, Z))
U3(X, X0, Y, app1_out(X1, .(X0, X2), X)) → U4(X, X0, Y, X1, X2, app2_in(X1, X2, Z))
app2_in([], Y, Y) → app2_out([], Y, Y)
app2_in(.(X0, X), Y, .(X0, Z)) → U2(X0, X, Y, Z, app2_in(X, Y, Z))
U2(X0, X, Y, Z, app2_out(X, Y, Z)) → app2_out(.(X0, X), Y, .(X0, Z))
U4(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → U5(X, X0, Y, perm_in(Z, Y))
U5(X, X0, Y, perm_out(Z, Y)) → perm_out(X, .(X0, Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
PERM_IN(X, .(X0, Y)) → U31(X, X0, Y, app1_in(X1, .(X0, X2), X))
PERM_IN(X, .(X0, Y)) → APP1_IN(X1, .(X0, X2), X)
APP1_IN(.(X0, X), Y, .(X0, Z)) → U11(X0, X, Y, Z, app1_in(X, Y, Z))
APP1_IN(.(X0, X), Y, .(X0, Z)) → APP1_IN(X, Y, Z)
U31(X, X0, Y, app1_out(X1, .(X0, X2), X)) → U41(X, X0, Y, X1, X2, app2_in(X1, X2, Z))
U31(X, X0, Y, app1_out(X1, .(X0, X2), X)) → APP2_IN(X1, X2, Z)
APP2_IN(.(X0, X), Y, .(X0, Z)) → U21(X0, X, Y, Z, app2_in(X, Y, Z))
APP2_IN(.(X0, X), Y, .(X0, Z)) → APP2_IN(X, Y, Z)
U41(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → U51(X, X0, Y, perm_in(Z, Y))
U41(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → PERM_IN(Z, Y)
perm_in([], []) → perm_out([], [])
perm_in(X, .(X0, Y)) → U3(X, X0, Y, app1_in(X1, .(X0, X2), X))
app1_in([], Y, Y) → app1_out([], Y, Y)
app1_in(.(X0, X), Y, .(X0, Z)) → U1(X0, X, Y, Z, app1_in(X, Y, Z))
U1(X0, X, Y, Z, app1_out(X, Y, Z)) → app1_out(.(X0, X), Y, .(X0, Z))
U3(X, X0, Y, app1_out(X1, .(X0, X2), X)) → U4(X, X0, Y, X1, X2, app2_in(X1, X2, Z))
app2_in([], Y, Y) → app2_out([], Y, Y)
app2_in(.(X0, X), Y, .(X0, Z)) → U2(X0, X, Y, Z, app2_in(X, Y, Z))
U2(X0, X, Y, Z, app2_out(X, Y, Z)) → app2_out(.(X0, X), Y, .(X0, Z))
U4(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → U5(X, X0, Y, perm_in(Z, Y))
U5(X, X0, Y, perm_out(Z, Y)) → perm_out(X, .(X0, Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
APP2_IN(.(X0, X), Y, .(X0, Z)) → APP2_IN(X, Y, Z)
perm_in([], []) → perm_out([], [])
perm_in(X, .(X0, Y)) → U3(X, X0, Y, app1_in(X1, .(X0, X2), X))
app1_in([], Y, Y) → app1_out([], Y, Y)
app1_in(.(X0, X), Y, .(X0, Z)) → U1(X0, X, Y, Z, app1_in(X, Y, Z))
U1(X0, X, Y, Z, app1_out(X, Y, Z)) → app1_out(.(X0, X), Y, .(X0, Z))
U3(X, X0, Y, app1_out(X1, .(X0, X2), X)) → U4(X, X0, Y, X1, X2, app2_in(X1, X2, Z))
app2_in([], Y, Y) → app2_out([], Y, Y)
app2_in(.(X0, X), Y, .(X0, Z)) → U2(X0, X, Y, Z, app2_in(X, Y, Z))
U2(X0, X, Y, Z, app2_out(X, Y, Z)) → app2_out(.(X0, X), Y, .(X0, Z))
U4(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → U5(X, X0, Y, perm_in(Z, Y))
U5(X, X0, Y, perm_out(Z, Y)) → perm_out(X, .(X0, Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
APP2_IN(.(X0, X), Y, .(X0, Z)) → APP2_IN(X, Y, Z)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
APP2_IN(.(X), Y) → APP2_IN(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APP1_IN(.(X0, X), Y, .(X0, Z)) → APP1_IN(X, Y, Z)
perm_in([], []) → perm_out([], [])
perm_in(X, .(X0, Y)) → U3(X, X0, Y, app1_in(X1, .(X0, X2), X))
app1_in([], Y, Y) → app1_out([], Y, Y)
app1_in(.(X0, X), Y, .(X0, Z)) → U1(X0, X, Y, Z, app1_in(X, Y, Z))
U1(X0, X, Y, Z, app1_out(X, Y, Z)) → app1_out(.(X0, X), Y, .(X0, Z))
U3(X, X0, Y, app1_out(X1, .(X0, X2), X)) → U4(X, X0, Y, X1, X2, app2_in(X1, X2, Z))
app2_in([], Y, Y) → app2_out([], Y, Y)
app2_in(.(X0, X), Y, .(X0, Z)) → U2(X0, X, Y, Z, app2_in(X, Y, Z))
U2(X0, X, Y, Z, app2_out(X, Y, Z)) → app2_out(.(X0, X), Y, .(X0, Z))
U4(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → U5(X, X0, Y, perm_in(Z, Y))
U5(X, X0, Y, perm_out(Z, Y)) → perm_out(X, .(X0, Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
APP1_IN(.(X0, X), Y, .(X0, Z)) → APP1_IN(X, Y, Z)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
APP1_IN(.(Z)) → APP1_IN(Z)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
U41(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → PERM_IN(Z, Y)
U31(X, X0, Y, app1_out(X1, .(X0, X2), X)) → U41(X, X0, Y, X1, X2, app2_in(X1, X2, Z))
PERM_IN(X, .(X0, Y)) → U31(X, X0, Y, app1_in(X1, .(X0, X2), X))
perm_in([], []) → perm_out([], [])
perm_in(X, .(X0, Y)) → U3(X, X0, Y, app1_in(X1, .(X0, X2), X))
app1_in([], Y, Y) → app1_out([], Y, Y)
app1_in(.(X0, X), Y, .(X0, Z)) → U1(X0, X, Y, Z, app1_in(X, Y, Z))
U1(X0, X, Y, Z, app1_out(X, Y, Z)) → app1_out(.(X0, X), Y, .(X0, Z))
U3(X, X0, Y, app1_out(X1, .(X0, X2), X)) → U4(X, X0, Y, X1, X2, app2_in(X1, X2, Z))
app2_in([], Y, Y) → app2_out([], Y, Y)
app2_in(.(X0, X), Y, .(X0, Z)) → U2(X0, X, Y, Z, app2_in(X, Y, Z))
U2(X0, X, Y, Z, app2_out(X, Y, Z)) → app2_out(.(X0, X), Y, .(X0, Z))
U4(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → U5(X, X0, Y, perm_in(Z, Y))
U5(X, X0, Y, perm_out(Z, Y)) → perm_out(X, .(X0, Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
U41(X, X0, Y, X1, X2, app2_out(X1, X2, Z)) → PERM_IN(Z, Y)
U31(X, X0, Y, app1_out(X1, .(X0, X2), X)) → U41(X, X0, Y, X1, X2, app2_in(X1, X2, Z))
PERM_IN(X, .(X0, Y)) → U31(X, X0, Y, app1_in(X1, .(X0, X2), X))
app2_in([], Y, Y) → app2_out([], Y, Y)
app2_in(.(X0, X), Y, .(X0, Z)) → U2(X0, X, Y, Z, app2_in(X, Y, Z))
app1_in([], Y, Y) → app1_out([], Y, Y)
app1_in(.(X0, X), Y, .(X0, Z)) → U1(X0, X, Y, Z, app1_in(X, Y, Z))
U2(X0, X, Y, Z, app2_out(X, Y, Z)) → app2_out(.(X0, X), Y, .(X0, Z))
U1(X0, X, Y, Z, app1_out(X, Y, Z)) → app1_out(.(X0, X), Y, .(X0, Z))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
U31(app1_out(X1, .(X2))) → U41(app2_in(X1, X2))
PERM_IN(X) → U31(app1_in(X))
U41(app2_out(Z)) → PERM_IN(Z)
app2_in([], Y) → app2_out(Y)
app2_in(.(X), Y) → U2(app2_in(X, Y))
app1_in(Y) → app1_out([], Y)
app1_in(.(Z)) → U1(app1_in(Z))
U2(app2_out(Z)) → app2_out(.(Z))
U1(app1_out(X, Y)) → app1_out(.(X), Y)
app2_in(x0, x1)
app1_in(x0)
U2(x0)
U1(x0)
U31(app1_out(X1, .(X2))) → U41(app2_in(X1, X2))
app1_in(Y) → app1_out([], Y)
POL(.(x1)) = 1 + x1
POL(PERM_IN(x1)) = 1 + 2·x1
POL(U1(x1)) = 2 + x1
POL(U2(x1)) = 2 + x1
POL(U31(x1)) = x1
POL(U41(x1)) = 1 + x1
POL([]) = 0
POL(app1_in(x1)) = 1 + 2·x1
POL(app1_out(x1, x2)) = 2·x1 + 2·x2
POL(app2_in(x1, x2)) = 2·x1 + 2·x2
POL(app2_out(x1)) = 2·x1
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
PERM_IN(X) → U31(app1_in(X))
U41(app2_out(Z)) → PERM_IN(Z)
app2_in([], Y) → app2_out(Y)
app2_in(.(X), Y) → U2(app2_in(X, Y))
app1_in(.(Z)) → U1(app1_in(Z))
U2(app2_out(Z)) → app2_out(.(Z))
U1(app1_out(X, Y)) → app1_out(.(X), Y)
app2_in(x0, x1)
app1_in(x0)
U2(x0)
U1(x0)